home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Multimedia / ^DivX_Article / virtualdub / VirtualDub-source-1_4d / PositionControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-20  |  2.4 KB  |  75 lines

  1. //    VirtualDub - Video processing and capture application
  2. //    Copyright (C) 1998-2001 Avery Lee
  3. //
  4. //    This program is free software; you can redistribute it and/or modify
  5. //    it under the terms of the GNU General Public License as published by
  6. //    the Free Software Foundation; either version 2 of the License, or
  7. //    (at your option) any later version.
  8. //
  9. //    This program is distributed in the hope that it will be useful,
  10. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. //    GNU General Public License for more details.
  13. //
  14. //    You should have received a copy of the GNU General Public License
  15. //    along with this program; if not, write to the Free Software
  16. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #ifndef f_POSITIONCONTROL_H
  19. #define f_POSITIONCONTROL_H
  20.  
  21. #include <windows.h>
  22.  
  23. #define POSITIONCONTROLCLASS (szPositionControlName)
  24.  
  25. #ifndef f_POSITIONCONTROL_CPP
  26. extern const char szPositionControlName[];
  27. #endif
  28.  
  29. typedef char (*PosCtlFTCallback)(HWND hwnd, void *data, long pos);
  30.  
  31. #define PCS_PLAYBACK            (0x00000001L)
  32. #define PCS_MARK                (0x00000002L)
  33. #define    PCS_SCENE                (0x00000004L)
  34.  
  35. #define PCN_THUMBTRACK            (NM_FIRST+0)
  36. #define PCN_THUMBPOSITION        (NM_FIRST+1)
  37. #define PCN_PAGELEFT            (NM_FIRST+2)
  38. #define PCN_PAGERIGHT            (NM_FIRST+3)
  39. #define PCN_BEGINTRACK            (NM_FIRST+4)
  40. #define PCN_ENDTRACK            (NM_FIRST+5)
  41.  
  42. #define PCN_STOP                (0)
  43. #define PCN_PLAY                (1)
  44. #define    PCN_PLAYPREVIEW            (10)
  45. #define PCN_MARKIN                (2)
  46. #define PCN_MARKOUT                (3)
  47. #define PCN_START                (4)
  48. #define PCN_BACKWARD            (5)
  49. #define PCN_FORWARD                (6)
  50. #define PCN_END                    (7)
  51. #define PCN_KEYPREV                (8)
  52. #define PCN_KEYNEXT                (9)
  53. #define    PCN_SCENEREV            (11)
  54. #define    PCN_SCENEFWD            (12)
  55. #define    PCN_SCENESTOP            (13)
  56.  
  57. #define PCM_SETRANGEMIN            (WM_USER+0x100)
  58. #define PCM_SETRANGEMAX            (WM_USER+0x101)
  59. #define PCM_GETPOS                (WM_USER+0x102)
  60. #define PCM_SETPOS                (WM_USER+0x103)
  61. #define PCM_GETSELSTART            (WM_USER+0x104)
  62. #define PCM_GETSELEND            (WM_USER+0x105)
  63. #define PCM_SETSELSTART            (WM_USER+0x106)
  64. #define PCM_SETSELEND            (WM_USER+0x107)
  65. #define PCM_SETFRAMERATE        (WM_USER+0x108)
  66. #define    PCM_RESETSHUTTLE        (WM_USER+0x109)
  67. #define PCM_CLEARSEL            (WM_USER+0x10A)
  68. #define PCM_SETFRAMETYPECB        (WM_USER+0x10B)
  69. #define PCM_CTLAUTOFRAME        (WM_USER+0x10C)
  70. #define PCM_SETDISPFRAME        (WM_USER+0x10D)
  71.  
  72. ATOM RegisterPositionControl();
  73.  
  74. #endif
  75.